package com.scm.service;

import com.scm.dao.VenderMapper;
import com.scm.pojo.Vender;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName VenderService
 * @Description TODO
 * @Author Xu
 * @Date 2021/7/9 16:19
 * @Version 1.0
 **/
@Service
public class VenderService implements VenderMapper {

    @Autowired
    private VenderMapper venderMapper;
    @Override
    public void addVender(Vender vender) {
        venderMapper.addVender(vender);
    }

    @Override
    public List<Vender> getAllVender() {
        return venderMapper.getAllVender();
    }

    @Override
    public List<Vender> getPageVender(Map<String ,Object> map) {
        return venderMapper.getPageVender(map);
    }

    @Override
    public void deleteVender(String venderCode) {
        venderMapper.deleteVender(venderCode);
    }

    @Override
    public void updateVender(Vender vender) {
        venderMapper.updateVender(vender);
    }

    @Override
    public Vender findVender(String venderCode) {
        return venderMapper.findVender(venderCode);
    }

    @Override
    public String getVenderCode(String name) {
        return venderMapper.getVenderCode(name);
    }

    @Override
    public String getVenderName(String venderCode) {
        return venderMapper.getVenderName(venderCode);
    }

    @Override
    public List<Vender> selectVender(Map<String, Object> map) {
        return venderMapper.selectVender(map);
    }

    @Override
    public int selectCountVender(Map<String, Object> map) {
        return venderMapper.selectCountVender(map);
    }
}
